<div class="febs-container" id="resource-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="resource-edit-form">
                            <input type="hidden" name="id">
                            <div class="layui-form-item">
                                <label class="layui-form-label ">资源编号：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="rsNo" autocomplete="off" class="layui-input" readonly>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label ">资源名称：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="rsName" autocomplete="off" class="layui-input"
                                           maxlength="64" >
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label ">资源类型：</label>
                                <!--<div class="layui-input-block">-->
                                    <!--<input type="text" name="rsType" autocomplete="off" class="layui-input"-->
                                           <!--maxlength="2" >-->
                                <!--</div>-->
                                <div class="layui-input-block">
                                    <select name="rsType" id="rsTypeSelect" >
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label ">所属场所：</label>
                                <!--<div class="layui-input-block">-->
                                    <!--<input type="text" name="rsPlace" autocomplete="off" class="layui-input"-->
                                           <!--maxlength="2" >-->
                                <!--</div>-->
                                <div class="layui-input-block">
                                    <select name="rsPlace" id="rsPlaceSelect" >
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label ">资源负责人：</label>
                                <div class="layui-input-block">
                                    <!--<input type="text" name="rsDirector" autocomplete="off" class="layui-input"-->
                                           <!--maxlength="64" >-->
                                    <select name="rsDirector" id="rsDirector"  >
                                        <option th:each="item:${users }"
                                                th:value="${item.userId}" th:text="${item.uname}"
                                                th:selected="${resource.rsDirector ==item.userId}">
                                    </select>
                                </div>
                            </div>
                            <!--<div class="layui-form-item" id="rsStatusDiv">
                                <label class="layui-form-label ">状态：</label>
                                <div class="layui-input-block">
                                    <select name="rsStatus" id="rsStatusSelect" >
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>-->
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="resource-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var resourceData = [[${resource}]];
    var rsNo = [[${rsNo}]];
</script>
<script th:src="@{/febs/js/sypq/resource/resourceEdit.js(v=1)}"></script>

<style>
    #resource-edit .layui-form-label {
        width: 140px;
    }
    #resource-edit .layui-input-block {
        margin-left: 170px;
    }
</style>